<!DOCTYPE html>
<html>
<head>
<script src="jquery.js"></script>
<script>

 
$(function(){
        var a=$('<p><a>zhanghanyun</a></p>');
             a.css('color','red');	
	var b=$('p');
	b.css('color','red';'background','yellow');
	  var c=b.parent(); 
	  alert(c.html());
	  c.append(a.html());
	})


</script>
</head>
<body>
<p>nihao</p>
</body>
</html>
